package com.springboot.demo.model.constants;

import com.cx.item.common.cache.redis.RedisCacheKeyPrefixNumber;

/**
 * redis静态常量，常量名称前加入001（项目编号）防止以后项目过多key冲突引起隐藏bug
 * 缓存在redis的key才需要添加前缀001
 * Created by hwm on 2018/7/2.
 */
public class SunMiniappRedisConstants {

    /**
     * 静态私有项目编号，key前面拼装项目编号
     */
    public static String staticConstantNumber = RedisCacheKeyPrefixNumber.item001;

    /**
     * 用户redis缓存的token列表key
     */
    public static String CUSTOMER_CACHE_REDIS_TOKEN_KEY = staticConstantNumber + "customerTokenList";

    /**
     * 用户redis缓存的token列表key有效天数
     */
    public static int CUSTOMER_CACHE_REDIS_TOKEN_KEY_VALID_DAY = 2;


    /**
     * 用户请求头的token参数key
     */
    public static String CUSTOMER_HEAD_TOKEN_KEY = "customerToken";

    /**
     * 添加到attribute的用户id key
     */
    public static String CUSTOMER_ID_ATTRIBUTE_KEY = "customerId";
}
